package com.springboot.hotel.service;

import com.github.pagehelper.PageInfo;
import com.springboot.hotel.model.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 12641
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2023-05-30 02:21:46
*/
public interface SysUserService extends IService<SysUser> {
    SysUser login(SysUser sysUser);


    int saveSysUser(SysUser sysUser);

    SysUser FindEmail(SysUser sysUser);


    PageInfo<SysUser> list(SysUser sysUser, Integer page, Integer limit);

//根据username查询id
    SysUser getUserIdByUsername(String username);


//    查询isdel为true的数据
    PageInfo<SysUser> selectByIsdel(SysUser sysUser,Integer page,Integer limit);

}
